# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-time-human
pkgver=1.03
pkgrel=13
pkgdesc="Perl/CPAN Module Time::Human"
arch=("any")
url="https://search.cpan.org/dist/Time-Human"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/J/JH/JHOBLITT/Time-Human-$pkgver.tar.gz")
sha256sums=('90e9812b89eb2f5773b3c0872a9b8bfb61fda3c6a4570d1a6610771926d7f976')

build() {
  cd "$srcdir"/Time-Human-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Time-Human-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
